package com.zsc.manage.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zsc.common.annotation.Excel;
import com.zsc.common.core.domain.BaseEntity;

/**
 * 地址簿对象 store_address
 *
 * @author zsc
 * @date 2024-11-09
 */
public class Address extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 收货人 */
    @Excel(name = "收货人")
    private String consignee;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;


    /** 省级名称 */
    @Excel(name = "省级名称")
    private String provinceName;


    /** 市级名称 */
    @Excel(name = "市级名称")
    private String cityName;


    /** 区级名称 */
    @Excel(name = "区级名称")
    private String districtName;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detail;

    /** 标签 */
    @Excel(name = "标签")
    private String label;

    /** 默认 0 否 1是 */
    @Excel(name = "默认 0 否 1是")
    private Integer isDefault;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setConsignee(String consignee)
    {
        this.consignee = consignee;
    }

    public String getConsignee()
    {
        return consignee;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }



    public void setProvinceName(String provinceName)
    {
        this.provinceName = provinceName;
    }

    public String getProvinceName()
    {
        return provinceName;
    }



    public void setCityName(String cityName)
    {
        this.cityName = cityName;
    }

    public String getCityName()
    {
        return cityName;
    }


    public void setDistrictName(String districtName)
    {
        this.districtName = districtName;
    }

    public String getDistrictName()
    {
        return districtName;
    }
    public void setDetail(String detail)
    {
        this.detail = detail;
    }

    public String getDetail()
    {
        return detail;
    }
    public void setLabel(String label)
    {
        this.label = label;
    }

    public String getLabel()
    {
        return label;
    }
    public void setIsDefault(Integer isDefault)
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault()
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("consignee", getConsignee())
            .append("sex", getSex())
            .append("phone", getPhone())
            .append("provinceName", getProvinceName())
            .append("cityName", getCityName())
            .append("districtName", getDistrictName())
            .append("detail", getDetail())
            .append("label", getLabel())
            .append("isDefault", getIsDefault())
            .toString();
    }
}
